{{include file="common@layout/_meta_x-admin" /}}
<body>
<div class="layui-fluid">
    <div class="layui-row">
        <form class="layui-form">
            {{:widget('common/Form/input',['登录名','username','',true])}}
            {{:widget('common/Form/input',['登录密码','password','',true,false,true])}}
            {{:widget('common/Form/manyInput',[[['lable' => '姓名','name' => 'name','value' => '','require' => true],['lable' => '手机号','name' => 'phone','value' => '','require' => 'phone'],['lable' => '密码错误次数','name' => 'error','value' => 0,'require' => true]]])}}
            {{:widget('common/Form/select',['角色','store_role_id','',$storeRoleSelect])}}
            {{:widget('common/Form/select',['修改密码','is_update_pw','',$storeIsUpPassSelect])}}
            {{:widget('common/Form/select',['状态','status','',$storeStatusSelect])}}
            {{:widget('common/Form/textarea',['备注','memo','',false])}}
            {{:widget('common/Form/submit')}}
        </form>
    </div>
</div>
</body>
<script>
    layui.use(['form','jquery'], function(){
        var form = layui.form;
        var $ = layui.jquery;

        //监听提交
        form.on('submit(submitForm)', function(data){
            console.log(data)
            ajaxRequest('',data.field)
            return false;
        });
    });
</script>
